{extend name="common@portalBase" /}
{block name="content"}
<style>
  .list-group {
    text-align: center;
  }

</style>
<section class="content" id="demo">
  <div class="row">
    <div class="col-xs-12 col-sm-9">
      <div class="panel panel-info">
        <div class="panel-heading">
          <div class="panel-title"> 模拟考试</div>
        </div>
        <div class="panel-body">
          <div class="media media1" style="margin: 0 10px 0 20px;">
            {foreach $questions as $key=>$row}
            <div class="media-body">
              <h4 class="media-heading media-heading1" style="color: #323131;line-height: 30px;">
                {$key+1}、{$row.content}
              </h4>
              <p style="margin-top:10px;line-height: 25px;">
                {:implode('<br/>',json_decode($row.answers,true))}
              </p>
              <p class="pull-right author">
              <p class="label {$answers[$key] ===$row.right ? 'label-success' : 'label-danger'}">
                {:isset($answers[$key]) ? '考生选择：'.chr(65+$answers[$key]) : ""}
                正确答案：{:chr(65+$row.right)}</p>
              </p>
            </div>
            <hr class="hr1" width="98%" color="#6f5499" size="3"/>
            {/foreach}
          </div>
        </div>
      </div>
    </div>
    <div class="col-xs-12 col-sm-3">
      <ul class="list-group" style="text-align: left">
        <li class="list-group-item">考试时间：{$testAnswer['create_time']}</li>
        <li class="list-group-item">考试得分：{$testAnswer['score']}</li>
        <li class="list-group-item">本次考试您击败了{$testAnswer.score_sort}名同学。</li>
      </ul>

    </div>
  </div>
</section>
{/block}
{block name="page_script"}
<script>

</script>
{/block}





